-- GENERATED SPELL FOR [Underbat] --


function spell0_17724(pUnit, Event) --@Tentacle Lash,n/a--
pUnit:FullCastSpellOnTarget(34171,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17724', 590, 1)
end

function spell1_17724(pUnit, Event) --@Tentacle Lash,n/a--
pUnit:FullCastSpellOnTarget(37956,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17724', 639, 1)
end

function Sorts_17724(pUnit, Event)
local choix_sorts_17724 = math.random(0, 1)
if choix_sorts_17724 == 0 then
pUnit:RegisterEvent('spell0_17724', 1, 1)
end
if choix_sorts_17724 == 1 then
pUnit:RegisterEvent('spell1_17724', 1, 1)
end
end

function mob17724_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17724', math.random(1500, 3000), 1)
end

function mob17724_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17724_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17724_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17724, 1, 'mob17724_Action')
RegisterUnitEvent(17724, 2, 'mob17724_Leave')
RegisterUnitEvent(17724, 3, 'mob17724_Kill')
RegisterUnitEvent(17724, 4, 'mob17724_Die')
